@import '~taro-ui/dist/style/components/button.scss';
@import '~taro-ui/dist/style/components/loading.scss';
@import '~taro-ui/dist/style/components/icon.scss';

.deliveryTimeSelect {
  opacity: 1;
  transition: opacity 0.1s linear 0s;

  .mask {
    position: fixed;
    z-index: 1000;
    top: 0px;
    right: 0px;
    left: 0px;
    bottom: 0px;
    display: block;
    background: rgba(0, 0, 0, 0.5);
  }

  .inner {
    z-index: 5000;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    left: 0;
    min-width: 256px;
    min-height: 208px;
    transform: translate(0, 0);
    color: #333;
    font-size: 28px;
    font-weight: 400;
    line-height: 42px;

    width: 100%;
    height: 687px;
    background: rgba(255, 255, 255, 1);
    border-radius: 20px 20px 0 0;
  }

  .inner {
    .head {
      background: none;
      position: relative;

      .title {
        margin-top: 54px;
        margin-bottom: 70px;

        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: bold;

        height: 42px;
        font-size: 30px;
        color: rgba(0, 0, 0, 0.85);
        line-height: 42px;
        text-align: center;
      }

      .close-icon {
        position: absolute;
        right: 35px;
        top: 43px;
        width: 35px;
        height: 35px;
      }
    }

    .split {
      border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .time {
      height: 357px;
      display: flex;

      border-top: 1px solid rgba(0, 0, 0, 0.1);
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);

      .left {
        width: 163px;
        height: 357px;

        // border-right: 1px solid rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        display: flex;
        flex-direction: column;

        .today {
          margin-top: 27px;

          &.selected {
            background: #0f77fe;
            color: #ffffff;
          }
        }

        .tomorrow {
          margin-top: 22px;

          &.selected {
            background: #0f77fe;
            color: #ffffff;
          }
        }
      }

      .right {
        margin-left: 10px;
        width: auto;
        height: 357px;
        flex-grow: 1;

        border-left: 1px solid rgba(0, 0, 0, 0.1);

        max-height: 100%;
        overflow: scroll;

        .time-item {
          height: 122px;
          border-bottom: 1px solid rgba(0, 0, 0, 0.1);
          display: flex;
          align-items: center;
          position: relative;

          .prefix {
            padding-left: 38px;

            height: 37px;
            font-size: 26px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: rgba(0, 0, 0, 0.85);
            line-height: 37px;
          }

          .time-value {
            width: 188px;
            height: 37px;
            font-size: 26px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: rgba(0, 0, 0, 0.85);
            line-height: 37px;
          }

          .time-select {
            position: absolute;
            right: 35px;

            width: 18px;
            height: 18px;
            display: inline-block;
            padding: 6rpx;
            border: 1px solid #979797;
            border-radius: 50%;
            background-clip: content-box;

            &.selected {
              background-color: #0f77fe;
            }
          }
        }
      }
    }

    .bottom {
      .btn {
        height: 94px;
        background: #ffdc26;
        border-radius: 10px;
        margin: 32px 36px;

        font-size: 28px;
        color: rgba(0, 0, 0, 0.85);

        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: bold;
      }
    }
  }
}
